package com.zk.yygh.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zk.yygh.model.order.OrderInfo;
import com.zk.yygh.model.order.PaymentInfo;

import java.util.Map;


/**
 * @author: 张凯
 * @date: 2022/6/22 - 17:22
 */
public interface PaymentService extends IService<PaymentInfo> {

    //添加支付信息
    void savePaymentInfo(OrderInfo order, Integer paymentType);
    //查询支付状态
    Map<String, String> queryPayStatus(Long orderId);
    //支付成功更新支付及订单信息
    void paySuccess(String outTradeNo, Integer payType, Map<String, String> restMap);
    //获取支付信息
    PaymentInfo getPayment(Long orderId, Integer status);
}
